home *** CD-ROM | disk | FTP | other *** search
- Path: oitnews.harvard.edu!NewsWatcher!user
- From: duffyfr@a1.tch.harvard.edu (Frank H. Duffy, MD)
- Newsgroups: comp.lang.c
- Subject: GCC structure alignment query
- Date: Mon, 05 Feb 1996 20:46:02 -0500
- Organization: Harvard Medical School
- Message-ID: <duffyfr-0502962046030001@134.174.41.144>
- NNTP-Posting-Host: 134.174.41.144
-
- Am trying to read a complex data structure created in
- DOS with Microsoft C compiled as "cl -Zp foo.c".
-
- I am using gcc under Linux and need to unpack structures that
- contain byte size variables. Gcc defaults to a structure the
- sizeof which is slightly too large. What command allows me to
- create byte packed structures and avoid alignment on word
- boundaries? Could not seem to find it in the gcc man pages.
-
- Please respond to e-mail address below.
-
- Many thanks.
-
- Frank
-
- ----------------------------------------------------------------
- Frank H. Duffy, MD e-mail: duffyfr@a1.tch.harvard.edu
- Neurlogy phone: (617)-355-7919
- Childrens Hospital & fax: (617)-355-7230
- Harvard Medical School ham radio: k1moq
- 300 Longwood Ave
- Boston, MA 02115 USA
-